<!DOCTYPE html>
<html lang="en">
<head>
	<base href="http://127.0.0.1:8011/" />
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="xxf">
    <title>信息平台</title>
	<link href="css/xxf.css" rel="stylesheet">
    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
</head>
<body>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <span class="navbar-brand"><a href="http://127.0.0.1:8011/admin">信息平台</a>(登录171次)</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope fa-fw"></i>消息
                    </a>
                    <!-- /.dropdown-user -->
                </li>
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li><a href="javascript:navObj.about();"><i class="fa fa-mobile-phone fa-fw"></i> 关于</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                
                <!-- /.dropdown -->
            </ul>

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="usermanage" ><i class="fa fa-fw fa-dashboard"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="qxmanage" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="news" ><i class="fa fa-fw fa-dashboard"></i> 信息发布</a>
                        </li>
                                                <li>
                           	<a href="pxb" ><i class="fa fa-fw fa-dashboard"></i> 培训班管理</a>
                        </li>
                                                <li>
                           	<a href="pxy" ><i class="fa fa-fw fa-dashboard"></i> 学员和课程管理</a>
                        </li>
                                                <li>
                           	<a href="rxy" ><i class="fa fa-fw fa-dashboard"></i> 学员住宿</a>
                        </li>
                                                <li>
                           	<a href="fxy" ><i class="fa fa-fw fa-dashboard"></i> 学员收费</a>
                        </li>
                                                <li>
                           	<a href="pxs" ><i class="fa fa-fw fa-dashboard"></i> 培训学员查询</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        <a href='javascript:history.go(-1)' style='float: right'>返回<i class='fa fa-fw fa-mail-reply'></i></a>                            收费情况<a href="fxy_set"><i class="fa fa-fw fa-gear"></i></a>：<span class="xxf_red">吴祥文</span>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                                                    该生培训项目为<span class="xxf_red"><?php echo $xnvar; ?>(<?php echo $xv; ?>)</span>，
                            意向住宿床位等级为
                            <select id="chuangfei">
                            	                            		<option value="0" >不住</option>			
                            	                            		<option value="60" >三类床位</option>			
                            	                            		<option value="90" selected>二类床位</option>			
                            	                            		<option value="180" >一类床位</option>			
                            	                            </select>
                            <input type="hidden" id="flevel" name="x" value="二类床位">
                            <input type="hidden" id="ftime" name="x" value="2017-11-13">
                            <input type="hidden" id="f1"  value="<?php echo $xv; ?>">
                            预计应收费用<u><span id="yfei" class="xxf_red"></span></u>，
                            实收<input type="text" id="xuefei" name="x" value="2540" style="width:60px;">
                            <select id="qianfei" name="x">
                            	<option selected>不欠费</option>
                            	<option >欠费</option>
                            </select>
                            备注<input type="text" id="fbeizhu" name="x">
                            <input type="button" value="确认" onclick="add()">
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->
    <!-- jQuery -->

    <script src="js/jquery.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>
    <script src="js/jquery.xxfset.js"></script>
    
<script type="text/javascript">
var navObj={
		setting:function(){
			$.xconfirm("原密码 <input type='password' id='navObj_pass0'><br><br>新密码 <input type='password' id='navObj_pass1'><br><br>新密码 <input type='password' id='navObj_pass2'>",function(tf){
				if(tf){
					var ypass=$("#navObj_pass0").val();
					var xpass1=$("#navObj_pass1").val();
					var xpass2=$("#navObj_pass2").val();
					if(ypass.length<1||xpass1.length<1||xpass2.length<1){
						alert("输入错误，修改失败！");
					}else{
						if(xpass1!=xpass2){
							alert("新密码不一致，修改失败！");
						}else{
							$.xloading(1);
							$.post("upassword",{uid:30,pass1:ypass,pass2:xpass1},function(data){
								if(data!=0){
									$.xloading(0);
									alert("修改成功！");
									location.href="out";
								}else{
									$.xloading(0);
									alert("原密码不正确，修改失败！");
								}
							});
						}
					}
				}
			});
		},
		about:function(){
			$.xalert("当前系统版本v2.0");
		}
};
</script>
</body>
</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        yshou();
        $("#chuangfei").change(function(){yshou();});
        $("#yfei").click(function(){$("#xuefei").val($(this).text());});
    });
    function yshou(){////////////////
        $("#yfei").html(parseFloat($("#f1").val())+parseFloat($("#chuangfei").val())*6);
        var cf=$("#chuangfei")[0];
        $("#flevel").val((cf[cf.selectedIndex].label));
    ;}
    
    function add(){
        if(isNaN(parseFloat($("#xuefei").val()))){
        	$.xalert("信息不正确！");return false;
        }
    	$.xconfirm("确定添加？",function(data){
 			if(data){
				$.xloading(1);
				$.xtodb("upd","peixunxueyuan",$("[name='x']"),"3",function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("添加失败");
					}else{
						alert("处理成功！");
						history.go(-1);
					}
				}); 
			} 
		});
    }    
    </script>